package com.stud.business.qb.domain;

import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.stud.common.annotation.Excel;
import com.stud.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * 作业对象 q_homework
 *
 * @author Stud
 * @date 2024-03-08
 */
@Schema(description = "作业")
@Getter
@Setter
@TableName("q_homework")
public class QHomework extends BaseEntity{

    @Excel(name = "编码")
    @Schema(description = "code")
    private String code;

    @Excel(name = "学校ID")
    @Schema(description = "schoolId")
    private Long schoolId;

    @Excel(name = "年级编码")
    @Schema(description = "gradeCode")
    private String gradeCode;

    @Excel(name = "班级编码")
    @Schema(description = "classId")
    private Long classId;

    @Excel(name = "学生ID")
    @Schema(description = "studentId")
    private Long studentId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "startTime")
    private LocalDateTime startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "endTime")
    private LocalDateTime endTime;

}
